m = int(input())
n = int(input())

a, b = 1, 1
count = 2
while count < m:
    a, b = b, a + b
    count += 1

while count <= n:
    print(a)
    a, b = b, a + b
    count += 1